#include <stdio.h>

int main()
{	 	   	 	   		 
    int m, sum1 = 0, sum2 = 0; //2

    printf("please input an integer:");   //1
    scanf("%d", &m);   //1
    while (m != 0 && (m >= -100 && m <= 100)) //e4
    {	 	   	 	   		 
        if (m > 0)   //4
            sum1 = sum1 + m; //2
        else
            sum2 = sum2 + m; //2
        printf("please input an integer:");  //1
        scanf("%d", &m); //1

    }
    printf("The sum of positive integers is %d,The sum of negative integers is %d\n", sum1, sum2); //2


    return 0;
}	 